<template>
  <div class="z_card">
    <div class="title">{{ title }}</div>
    <div class="body">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from "vue";
interface Props {
  title: string;
}

const props = defineProps<Props>();
</script>
<style lang="less">
.z_card {
  background-color: var(--color-bg-1);
  border-radius: 6px;
  .title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: @z_border;
  }
  .body {
    padding: 20px;
  }
}
</style>
